//
//  SMRTNavigationController.m
//  SMRTv1
//
//  Created by Ding on 8/9/13.
//  Copyright (c) 2013 Trans-Intelligence. All rights reserved.
//

#import "SMRTNavigationController.h"

@interface SMRTNavigationController ()

@end

@implementation SMRTNavigationController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.agencyListViewController = [[[SMRTAgencyListViewController alloc] initWithNibName:@"SMRTAgencyListViewController" bundle:nil] autorelease];
        [self pushViewController:self.agencyListViewController animated:NO];
    }    
    return self;
}

- (void)dealloc
{
    [_agencyListViewController release];
    [super dealloc];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    UIImageView *backgroundView=[[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]] autorelease];
    [self.view addSubview:backgroundView];
    [self.view sendSubviewToBack:backgroundView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
